<html>
<head>
  <title>Greetings</title>
</head>
<body>
  <h2>Previous Eatings</h2>
  {% for greeting in greetings %}
    <p>On {{greeting.date}}, 
    {% if greeting.author %}
      <b>{{greeting.author.nickname}}</b> wrote:
    {% else %}
      <i>Anonymous</i> wrote:
    {% endif %}
    <blockquote>{{greeting.content|escape}}</blockquote>
    </p>
  {% endfor %}

  <form action="/sign" method="post">
    <div><textarea name="content" rows="3" cols="60"></textarea></div>
    <div><input type="submit" value="Sign Guestbook"></div>
  </form>

  <a href="{{ url }}">{{ url_linktext }}</a>
</body>
</html>
